﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfrmSDBBuscar.aspx.cs" Inherits="wfrmSDBBuscar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>

<script type="text/javascript">
function OnRowClick(e){
_aspxClearSelection();
GridSolicitud._selectAllRowsOnPage(false);
GridSolicitud.SelectRow(e.visibleIndex,true);
}
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Listado de Proyectos - SDB</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
                            <br />
        <br />
                            <dx:aspxgridview id="GridSolicitud" runat="server" autogeneratecolumns="False" caption="Propuestas SDB"
                                clientinstancename="GridSolicitud" font-bold="False" keyfieldname="ID"
                                   width="689px" DataSourceID="SqlDataSource1">
<Styles>
<Header CssClass="tableHeader" Font-Bold="True" ForeColor="White"></Header>

<AlternatingRow Enabled="True"></AlternatingRow>

<PagerBottomPanel BackColor="#D7C8C7" ForeColor="White"></PagerBottomPanel>
</Styles>
<Columns>
<dx:GridViewCommandColumn Width="5px" VisibleIndex="0">
<ClearFilterButton Visible="True" Text="Limpiar"></ClearFilterButton>
</dx:GridViewCommandColumn>
<dx:GridViewDataTextColumn Caption="C&#243;digo Propuesta" VisibleIndex="1" Width="25px" FieldName="ID"></dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn Caption="C&#243;digo Cliente" VisibleIndex="2" FieldName="CCLIENTE">
    </dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn Caption="C&#243;digo Encargo" VisibleIndex="3" FieldName="CENCARGO">
    </dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn Caption="Los" VisibleIndex="4" Width="25px" FieldName="LOS">
    </dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn Caption="Sub Los" VisibleIndex="5" Width="25px" FieldName="SUBLOS">
    </dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn Caption="Industria" VisibleIndex="6" Width="50px" FieldName="INDUSTRIA">
    </dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn Caption="Canal" VisibleIndex="7" Width="50px" FieldName="CANAL">
    </dx:GridViewDataTextColumn>
    <dx:GridViewDataTextColumn Caption="Descripci&#243;n" VisibleIndex="8" Width="80px" FieldName="DESCRIPCION">
    </dx:GridViewDataTextColumn>
</Columns>

<Settings ShowFilterRow="True"></Settings>
                                <ClientSideEvents RowClick="function(s, e) { OnRowClick(e);}" />
</dx:aspxgridview>
        <br />
                            <asp:Button ID="btnSeleccionar" runat="server" Text="Seleccionar" /><asp:SqlDataSource
                                ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GPConnectionString2 %>" SelectCommand="SELECT [ID], [CCLIENTE], [CENCARGO], [LOS], [SUBLOS], [DESCRIPCION], [CANAL], [INDUSTRIA] FROM [TB_SDB]">
                            </asp:SqlDataSource>
        &nbsp;</div>
    </form>
</body>
</html>
